package com.relytosoft.mizar.media.system.api.pojo.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 安全级别
 *
 * @Author SunLi
 * @Date: 2022/4/25 14:07
 * @Version 1.0
 */
@ApiModel("SysSecurityLevelDto")
public class SysSecurityLevelDto implements Serializable {
    private static final long serialVersionUID = 7065581545512617014L;
    /**
     * 安全级别ID
     */
    @ApiModelProperty(value = "安全级别ID")
    private Integer id;

    /**
     * 安全级别名称
     */
    @ApiModelProperty(value = "安全级别名称", required = true)
    @NotBlank(message = "安全级别名称不能为空")
    private String name;

    /**
     * 安全级别颜色
     */
    @ApiModelProperty(value = "安全级别颜色", required = true)
    @NotBlank(message = "安全级别颜色不能为空")
    private String color;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sort;

    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    private String remark;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Override
    public String toString() {
        return "SysSecurityLevelDto{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", color='" + color + '\'' +
                ", sort=" + sort +
                ", remark='" + remark + '\'' +
                '}';
    }
}
